package com.authsystem.service;

import com.authsystem.entity.User;
import java.util.List;

public interface UserService {
    User login(String loginname, String password);
    User getUserWithRolesByUsername(String username);

    // 修改方法，添加分页参数
    List<User> getUsersByCondition(String username, String email, Integer status,
                                   String name, String mobilephone, Integer sex,
                                   Integer page, Integer pageSize);

    // 添加统计方法
    Long countUsersByCondition(String username, String email, Integer status,
                               String name, String mobilephone, Integer sex);

    Long getUserCount();
}